package com.tuling.spring.service;

import com.tuling.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    @Transactional
    public void test(){
        System.out.println(userMapper.selectById(1));
        System.out.println(userMapper.selectById(1));
        System.out.println(userMapper.selectById(1));
    }
}
